function [startPointer endPointer]=getPointers(i, length)
startPointer = ((i - 1) * length) + 1;
endPointer = startPointer + length - 1;
end